Release 10.1A: OpenEdge Getting Started:
WebSpeed Essentials
Firewall configuration
Using a firewall poses additional configuration issues because you must configure the firewall to allow communications between the OpenEdge server host machines on particular ports using TCP or UDP protocols. In OpenEdge Application Server: Developing WebSpeed Applications, the entire round-trip request is shown. All of these messages must go through the firewall.
Figure 4–13 illustrates which ports must be open and what protocols the messages use.
Figure 4–13: Firewall configuration Note: The firewall
![]()
fire2has two network cards, one for the Demilitarized Zone (DMZ) and one for the Internal network. Each of these has its own IP address, as shown.In the following sections the
hostsfile is mentioned. On UNIX or Linux, this is located at/etc/hostsand in Windows NT and later atC:\WINDOWS\system32\drivers\etc\hosts.The WebSpeed Messenger
ubroker.propertiesfile must have theminNSClientPortandmaxNSClientPortsettings modified in the[WebSpeed.Messengers]configuration, as shown in Example 4–4. The port range must be big enough to cope with all the potential simultaneous requests from the Internet. In this case, there are 20 ports available. You can make this range bigger if needed. Also, you must change the setting for the NameServer to point to the correct host.
You must configure the following:
- Between the Internet and Web server
webserv1:- Between the Web server (Messenger) and NameServer:
- Allow UDP from IP Address 1.1.1.1 to 5.5.5.5 on port 5678. This is the inbound NameServer request traffic.
- Allow UDP from IP Address 5.5.5.5 to 1.1.1.1 on ports 5680 to 5699 inclusive (assuming the above settings in the
ubroker.propertiesfile). This is the outbound NameServer response traffic as specified in the Messenger’subroker.propertiesfile on the Web server.- Between the Web server (Messenger) and WebSpeed broker:
- Between the Web server (Messenger) and WebSpeed agents:
Most firewalls accomplish this by using “port forwarding.” This means that when the firewall receives a request from a host on a certain port in the DMZ, it is passed through to a particular host on the internal network. When the
webserv1machine makes a request to the NameServer, it cannot see IP address 5.5.5.5 directly, and it has to pass the request to the firewall machinefire2. The firewall then makes the request on the internal network to IP address 5.5.5.5 on its behalf. When the response comes back from the NameServer to the firewall, the firewall will send it on to the Messenger on the DMZ network. As an analogy, think of the firewall as a language interpreter where the WebSpeed Messenger speaks English and the NameServer speaks German. The Messenger needs to talk to the NameServer but cannot do so directly, so it forwards the request to the interpreter who, in turn, makes a request to the NameServer on the Messenger’s behalf. The response is given to the interpreter by the NameServer, who then forwards it to the Messenger.This is achieved by setting the
hostsfile onwebserv1to have the hostinet_nsset to 2.2.2.2, as shown below. When the Messenger looks for hostinet_ns, it uses the IP address 2.2.2.2, which is the firewall hostfire2, as shown:
Note: You do not must have an entry for
fire2in thehostsfile as the DMZ machines never communicate with it by name; DMZ machines believe that communication with other machines never travels beyond the internal network.Similarly, the Messenger cannot communicate directly to the WebSpeed server host
webspeed1at IP address 4.4.4.4 either. So, another entry needs to be made in thehostsfile to make the Messenger communicate with the firewall instead of the “real” host, as shown:
Because of this, you cannot use the default setting for the WebSpeed broker’s registration mode. The default is to use the broker host IP Address. If you do this, the NameServer will tell the Messenger to try to contact the broker on IP address 4.4.4.4, which is not a valid IP address in the DMZ, and it will appear as if the broker has not responded. You must set the broker to register using a defined host name, in this case
webspeed1. When the NameServer responds this time, it tells the Messenger to try to connect using the host namewebspeed1. The Messenger asks the operating system on its host for the IP address ofwebspeed1. Since the address set in thehostsfile is 2.2.2.2, the Messenger uses that address when it is returned. The firewall then gets the request and passes it through. Figure 4–14 shows this configuration setting.Figure 4–14: Setting host name Note: The NameServer and WebSpeed server hosts do not need the firewall IP address in their
![]()
hostsfile because they only respond to requests and do not make them.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |